package com.lh.api.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.lh.api.dao.WinningAnnouncementMapper;
import com.lh.api.service.WinningAnnouncementService;
import com.lh.api.vo.WinningVo;
import com.lh.common.entity.admin.WinningAnnouncement;
import com.lh.common.utils.PageUtils;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Gze
 * @ClassName: ShopServiceImpl
 * @Description: (类作用)
 * @date: 2020-05-14 10:57
 */
@Service
public class WinningAnnouncementServiceImpl extends ServiceImpl<WinningAnnouncementMapper, WinningAnnouncement> implements WinningAnnouncementService {

    @Override
    public PageUtils<WinningVo> getList(String qureyTime, Integer pageNum, Integer pageSize) {
        if(pageNum != null && pageSize != null){
            PageHelper.startPage(pageNum, pageSize);
        }
        List<WinningVo> searchVos = this.baseMapper.getList(qureyTime);
        return new PageUtils<>(searchVos);
    }
}
